package us.kg.kotoriforest.schedule.common;

import lombok.Getter;

/**
 * 前后端业务响应码的枚举
 *
 * @author Kotori rotroutine@163.com
 * @since 2024/12/11
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "success"),
    USERNAME_ERROR(501, "usernameError"),
    PASSWORD_ERROR(503, "passwordError"),
    NOT_LOGIN(504, "notLogin"),
    USERNAME_USED(505, "userNameUsed");

    private final Integer code;
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
